#ifndef THRIFTWRAP_H
#define THRIFTWRAP_H

#include <QObject>
#include <QThread>
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/server/TSimpleServer.h>
#include <thrift/server/TNonblockingServer.h> //qA190415
#include <thrift/transport/TServerSocket.h>
#include <thrift/transport/TBufferTransports.h>
#include "./thrift_generate/Thrift.h"
#include "thrifthandler.h"
#include <QDebug>
#include <QObject>

class ThriftServer : public QThread
{
    Q_OBJECT
public:
    explicit ThriftServer(QObject *parent = nullptr);
    void disableRun();
signals:

public slots:

protected:
    void run() override;
private:
    bool m_isRun{false};
};

#endif // THRIFTWRAP_H
